/*
 * @Description: 表格列配置
 * @Author: HuiSir<https://gitee.com/huisir001>
 * @Date: 2021-11-05 11:41:30
 * @LastEditTime: 2025-08-01 09:38:27
 */
import { defineTableCols } from "@/components/TablePage/predefined";

export default defineTableCols(() => [
  {
    minWidth: 50,
    type: "selection",
    align: "center",
    fixed: "left",
  },
  {
    label: "访客IP",
    minWidth: 120,
    prop: "ip",
  },
  {
    label: "用户id",
    minWidth: 140,
    prop: "userId",
  },
  {
    label: "用户名",
    minWidth: 100,
    prop: "username",
    showOverflowTooltip: true,
  },
  {
    label: "请求地址",
    minWidth: "200",
    prop: "action",
    showOverflowTooltip: true,
  },
  {
    label: "操作说明",
    minWidth: 100,
    prop: "desc",
  },
  {
    label: "创建时间",
    prop: "createTime",
    minWidth: 160,
    sortable: true,
  },
  {
    label: "操作",
    fixed: "right",
    minWidth: 70,
    useRowBtns: ["del"],
  },
]);
